package com.shop.flowershopmanager.entity;

import java.sql.Timestamp;

public class Flowers {
    private Integer fId;
    private String fName;
    private Integer cId;
    private String origin;
    private String describe;
    private String url;
    private Timestamp createdAt;
    private double price;
    private Category category;

    public Integer getfId() {
        return fId;
    }

    public void setfId(Integer fId) {
        this.fId = fId;
    }

    public String getfName() {
        return fName;
    }

    public void setfName(String fName) {
        this.fName = fName;
    }

    public Integer getcId() {
        return cId;
    }

    public void setcId(Integer cId) {
        this.cId = cId;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Timestamp getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Timestamp createdAt) {
        this.createdAt = createdAt;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    @Override
    public String toString() {
        return "Flowers{" +
                "fId=" + fId +
                ", fName='" + fName + '\'' +
                ", cId=" + cId +
                ", origin='" + origin + '\'' +
                ", describe='" + describe + '\'' +
                ", url='" + url + '\'' +
                ", createdAt=" + createdAt +
                ", price=" + price +
                ", category=" + category +
                '}';
    }

    public Flowers(Integer fId, String fName, Integer cId, String origin, String describe, String url, Timestamp createdAt, double price, Category category) {
        this.fId = fId;
        this.fName = fName;
        this.cId = cId;
        this.origin = origin;
        this.describe = describe;
        this.url = url;
        this.createdAt = createdAt;
        this.price = price;
        this.category = category;
    }

    public Flowers() {
    }
}
